package com.cwl.base.day01;

/**
 * @program: java_base
 * @description: 逻辑运算符
 * @author: ChenWenLong
 * @create: 2019-11-05 15:08
 **/
public class TestOperator03 {

    public static void main(String[] args) {
        boolean   b1 = true;
        boolean   b2 = false;
        System.out.println(b1&b2);
        System.out.println(b1|b2);
        System.out.println(b1^b2);
        System.out.println(!b2);

        //短路
//		int  c = 3/0;
        boolean   b3 = 1>2&&2<(3/0);  //短路与，第一个操作数的值为false，则不需要在计算后面的操作数
        System.out.println(b3);


    }
}
